<?php
class OORDBMySQLSelectQuery extends OORDBMySQLQuery implements OORDBSelectQuery
{
	private $rows;
	
	public function execute()
	{
		parent::execute();
		$result = $this->getResult();
		$this->rows = new ArrayObject();
		if ( is_resource( $result ) )
		{
			while ( $row = mysql_fetch_assoc( $result ) )
			{
				$this->rows->append( $row );
			}
		}
	}
	
	public function getIterator()
	{
		return $this->rows->getIterator();
	}
}
?>